package com.cicigodd.brick.plug.common.response;

/**
 * 响应码，参考HTTP状态码的语义
 *
 * @author cicigodd
 * @date 2022/09/23 08:42:00
 */
public interface ResultCode {

    //执行成功
    Integer SUCCESS = 200;
    String SUCCESSMSG = "执行成功";

    //执行失败
    Integer FAIL = 400;
    String FAILMSG = "发生错误，执行失败";

    //未认证或未授权
    Integer UNAUTHORIZED = 401;
    String UNAUTHORIZEDMSG = "抱歉您没有权限";

    //令牌失效
    Integer TOKENFAIL = 403;
    String TOKENFAILMSG = "当前登录会话过期，请重新登录";

    //接口不存在
    Integer NOT_FOUND = 404;
    String NOT_FOUNDMSG = "请求资源不存在";

    //服务器内部错误
    Integer INTERNAL_SERVER_ERROR = 500;
    String INTERNAL_SERVER_ERRORMSG = "服务器内部错误";

}
